class Page3 extends BaseScreen {
    public constructor() {
        super();
        this.skinName = "resource/eui_skins/Page3Skin.exml";
    }

    private img_1: eui.Image;
    private img_2: eui.Image;
    private img_3: eui.Image;
    private img_4: eui.Image;
    private img_5: eui.Image;
    private img_6: eui.Image;
    private img_xx: eui.Image;

    private img_1_y:number;
    protected childrenCreated(): void {
        super.childrenCreated();
        this.init_view();
    }

    public init_view() {
        this.resetui();
    }

    public resetui(){
        this.img_1.alpha = 0;
        // this.img_6.alpha = 0;
        this.img_2.scaleY = 0;
        this.img_3.scaleY = 0;
        // this.img_4.scaleX = this.img_4.scaleY = 0;
        // this.img_5.scaleX = this.img_5.scaleY = 0;

         if(this.xx_page){
            this.xx_page.stop();
        }
    }

	public showPage(){
		egret.Tween.removeTweens(this);
        if (this.is_start_mv) {
            return;
        }
        this.is_start_mv = true;

        this.resetui();
        egret.Tween.get(this.img_1).to({ alpha:1}, 2000);

        egret.Tween.get(this.img_2).wait(400).to({ scaleY:1}, 1000, egret.Ease.backOut);
        egret.Tween.get(this.img_3).wait(700).to({ scaleY:1}, 1100, egret.Ease.backOut);
        // egret.Tween.get(this.img_4).wait(900).to({ scaleX:1,scaleY:1}, 1100, egret.Ease.backOut);
        // egret.Tween.get(this.img_5).wait(1200).to({ scaleX:1,scaleY:1}, 1100, egret.Ease.backOut);
        // egret.Tween.get(this.img_6).wait(1500).to({ alpha:1}, 1000);

    
        if(this.xx_page){
            this.xx_page.start();
        }
        
	}

	public resize(): void {
         super.resize();
         
    }
}